
export default class LanguageConfig {
    /**游戏语种 */
    public static gameLanguage = "zh-cn";
    /**配置数据 */
    public static configData = null;
    /**获取语言*/
    public static getText(key: string) {
        let str = this.configData[key];
        if (!str) console.error("can not find key:" + key + " in language:" + this.gameLanguage);
        return str
    }
    /**语言类型 */
    public static LANGUAGE_TYPE = {
        /**中文 */
        Chinese: "zh-cn",
        /**英文 */
        Engish: "en"
    }
    /**对应的文件夹 */
    public static languagePath = {
        "zh-cn": "zh-cn",
        "en": "en",
        "th": "th"
    };

}
